Optimal. Leaf size=78 \[ -\frac {2 \cot ^5(e+f x)}{5 a^3 c f}+\frac {\csc (e+f x)}{a^3 c f}-\frac {\csc ^3(e+f x)}{a^3 c f}+\frac {2 \csc ^5(e+f x)}{5 a^3 c f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 78, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 6, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {4043, 2686,
200, 2687, 30, 14} \begin {gather*} -\frac {2 \cot ^5(e+f x)}{5 a^3 c f}+\frac {2 \csc ^5(e+f x)}{5 a^3 c f}-\frac {\csc ^3(e+f x)}{a^3 c f}+\frac {\csc (e+f x)}{a^3 c f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 30
Rule 200
Rule 2686
Rule 2687
Rule 4043
Rubi steps
\begin {align*} \int \frac {\sec (e+f x)}{(a+a \sec (e+f x))^3 (c-c \sec (e+f x))} \, dx &=-\frac {\int \left (c^2 \cot ^5(e+f x) \csc (e+f x)-2 c^2 \cot ^4(e+f x) \csc ^2(e+f x)+c^2 \cot ^3(e+f x) \csc ^3(e+f x)\right ) \, dx}{a^3 c^3}\\ &=-\frac {\int \cot ^5(e+f x) \csc (e+f x) \, dx}{a^3 c}-\frac {\int \cot ^3(e+f x) \csc ^3(e+f x) \, dx}{a^3 c}+\frac {2 \int \cot ^4(e+f x) \csc ^2(e+f x) \, dx}{a^3 c}\\ &=\frac {\text {Subst}\left (\int x^2 \left (-1+x^2\right ) \, dx,x,\csc (e+f x)\right )}{a^3 c f}+\frac {\text {Subst}\left (\int \left (-1+x^2\right )^2 \, dx,x,\csc (e+f x)\right )}{a^3 c f}+\frac {2 \text {Subst}\left (\int x^4 \, dx,x,-\cot (e+f x)\right )}{a^3 c f}\\ &=-\frac {2 \cot ^5(e+f x)}{5 a^3 c f}+\frac {\text {Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,\csc (e+f x)\right )}{a^3 c f}+\frac {\text {Subst}\left (\int \left (-x^2+x^4\right ) \, dx,x,\csc (e+f x)\right )}{a^3 c f}\\ &=-\frac {2 \cot ^5(e+f x)}{5 a^3 c f}+\frac {\csc (e+f x)}{a^3 c f}-\frac {\csc ^3(e+f x)}{a^3 c f}+\frac {2 \csc ^5(e+f x)}{5 a^3 c f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.80, size = 109, normalized size = 1.40 \begin {gather*} -\frac {\csc (e) \csc ^5(e+f x) \sin ^4\left (\frac {1}{2} (e+f x)\right ) (-40 \sin (e)+65 \sin (e+f x)+52 \sin (2 (e+f x))+13 \sin (3 (e+f x))-40 \sin (2 e+f x)-12 \sin (e+2 f x)-20 \sin (3 e+2 f x)-8 \sin (2 e+3 f x))}{20 a^3 c f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.15, size = 61, normalized size = 0.78
method | result | size |
derivativedivides | \(\frac {\frac {\left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{5}-\left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )+3 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+\frac {1}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )}}{8 f \,a^{3} c}\) | \(61\) |
default | \(\frac {\frac {\left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{5}-\left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )+3 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+\frac {1}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )}}{8 f \,a^{3} c}\) | \(61\) |
risch | \(\frac {2 i \left (5 \,{\mathrm e}^{5 i \left (f x +e \right )}+10 \,{\mathrm e}^{4 i \left (f x +e \right )}+10 \,{\mathrm e}^{3 i \left (f x +e \right )}-3 \,{\mathrm e}^{i \left (f x +e \right )}-2\right )}{5 f \,a^{3} c \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )^{5} \left ({\mathrm e}^{i \left (f x +e \right )}-1\right )}\) | \(85\) |
norman | \(\frac {\frac {1}{8 a c f}+\frac {3 \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{8 a c f}-\frac {\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )}{8 a c f}+\frac {\tan ^{6}\left (\frac {f x}{2}+\frac {e}{2}\right )}{40 a c f}}{a^{2} \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}\) | \(94\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 103, normalized size = 1.32 \begin {gather*} \frac {\frac {\frac {15 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {5 \, \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {\sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}}{a^{3} c} + \frac {5 \, {\left (\cos \left (f x + e\right ) + 1\right )}}{a^{3} c \sin \left (f x + e\right )}}{40 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.69, size = 82, normalized size = 1.05 \begin {gather*} -\frac {2 \, \cos \left (f x + e\right )^{3} - \cos \left (f x + e\right )^{2} - 4 \, \cos \left (f x + e\right ) - 2}{5 \, {\left (a^{3} c f \cos \left (f x + e\right )^{2} + 2 \, a^{3} c f \cos \left (f x + e\right ) + a^{3} c f\right )} \sin \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {\int \frac {\sec {\left (e + f x \right )}}{\sec ^{4}{\left (e + f x \right )} + 2 \sec ^{3}{\left (e + f x \right )} - 2 \sec {\left (e + f x \right )} - 1}\, dx}{a^{3} c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.53, size = 87, normalized size = 1.12 \begin {gather*} \frac {\frac {5}{a^{3} c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \frac {a^{12} c^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 5 \, a^{12} c^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 15 \, a^{12} c^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{a^{15} c^{5}}}{40 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.62, size = 74, normalized size = 0.95 \begin {gather*} -\frac {16\,{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6-28\,{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4+8\,{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2-1}{40\,a^3\,c\,f\,{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5\,\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________